import { NgModule } from '@angular/core';
import { RouterModule, Routes }  from '@angular/router';

import { AuthComponent } from './auth.component';
import { AuthSignInComponent } from '../auth-sign-in/auth-sign-in.component';
//import { SignInComponent } from '../sign-in/sign-in.component';

const routes:Routes = <Routes>[
  {
    path: '',
    component: AuthComponent,
    children: [
      {
        path: 'sign-in',
        component: AuthSignInComponent,
        //component: SignInComponent,
      },
      { path: '',
        redirectTo: 'sign-in',
        pathMatch: 'full'
      },
      {
        path: 'sign-up',
        loadChildren: 'app/sign-up/sign-up.module#SignUpModule'
      },
      {
        path: 'forgot-password',
        loadChildren: 'app/forgot-password/forgot-password.module#ForgotPasswordModule'
      },
    ]
  },
];

@NgModule({
  imports: [
    RouterModule.forChild(routes)
  ],
  exports: [
    RouterModule
  ]
})
export class AuthRoutingModule { }
